<template>
    <div class="pic-style-main">
        <el-carousel :interval="5000" arrow="always" type="card">
            <el-carousel-item v-for="item in imageList" :key="item.src">
              <img v-bind:src="item.src">
            </el-carousel-item>
        </el-carousel>
    </div>
    <el-divider></el-divider>
</template>

<script>
export default {
    name: "pictureBanner",
    data(){
        return{
            imageList:[
                { src: require('../../assets/images/a.jpeg')},
                { src: require("../../assets/images/b.jpeg")},
                { src: require("../../assets/images/c.jpeg")},
                { src: require("../../assets/images/d.jpeg")},
            ]
        }
    }
}
</script>


<style scoped>
@import url("//unpkg.com/element-plus/lib/theme-chalk/index.css");
.el-carousel__item h3 {
    color: #475669;
    font-size: 18px;
    opacity: 0.75;
    line-height: 300px;
    margin: 0;
  }

  .el-carousel__item:nth-child(2n) {
    background-color: #99a9bf;
  }

  .el-carousel__item:nth-child(2n+1) {
    background-color: #d3dce6;
  }

 img{
     width: 100%;
 }   
 .pic-style-main{
     width: 100%;
     margin: 0 auto;
     /* box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1); */
 }

</style>